<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<jsp:useBean id="bean" class="com.lmpop.frame.util.RandomID" scope="page"/>
<%@page import="com.lmpop.trade.ts_custclass.*" %>
<%
	String pri_key = bean.GenTradeId();
	Map custclassinfoMap = new Hashtable();
	custclassinfoMap.put("class_type","1");
	Ts_custclassInfo custclassinfo = new Ts_custclassInfo();
	String custclass_select =  custclassinfo.getSelectString(custclassinfoMap,"");
%>

<html>
  <head>
    <title>发放规则设置</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="index.js"></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/engine.js'></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/Ti_PaymentRulesInfo.js'></script> 
</head>

<body>
	<h1>新增发放规则设置</h1>
	<form action="/doTradeReg.do" method="post" name="addRuleForm">
	
	<input name="trade_id" id="trade_id" type="hidden" value="<%=pri_key%>"/>

	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
		
		<tr>
			<td align="right" width="10%">
				优惠券类型<font color="red">*</font>
			</td>
			<td>
			<input name="voucher_type" id="voucher_type" size="20" maxlength="20" type="text" /></td>
		</tr>
		
		<tr >
			<td align="right" width="30%">
				会员级别
			</td>
			<td>
				<select name="member_level" id="member_level" >
									<option value="">请选择</option>
								  	<%=custclass_select%>
				</select>
		</tr>
		
		
		<tr>
			<td align="right" width="10%">
				限制数量<font color="red">*</font>
			</td>
			<td><input name="limit_number" id="limit_number" size="5" maxlength="5" type="text" onKeyUp="if(isNaN(value))this.value=''"/></td>
		</tr>
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="9010" />
				<input type="hidden" name="rule_id" value="<%=pri_key %>" />
				<input type="button" class="buttoncss" name="tradeSub" value="提交" onclick="return checkRule('addRuleForm');"/>&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='paymentrules_index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>

